package com.zwt.util;

/**
 * Created by zwt on 2018/8/24.
 */
public class JsonUtil {

    /**
     * 根据外部地址获取json数据
     * @param requestUrl
     * @return
     */
    public static String getJson(String requestUrl){
        String url = HttpUtil.urlEncode(requestUrl);
        String json = HttpUtil.doHttpGet(url);
        return json;
    }
}
